<style>
a{text-decoration:none}
.page2{height:20px;width:20px;border:1px solid #464646; text-align:center;vertical-align:middle;display:inline-block;color:#0066CC}
.page2:hover{background-color:#666666;color:#fff}
.current{height:20px;width:20px;border:1px solid #666666; text-align:center;vertical-align:middle;color:#FFF;font-weight:bold;background:#666666;display:inline-block;}
</style>
<div id="list">
  <table border="0" cellpadding="15" width="100%" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; border-collapse:collapse">
  <tr height=30>
		<td id="tdst" width="20">　</td>
		<td id="tdst" width="60">操作</td>
		<td id="tdst" width="100">商品编号</td>
		<td id="tdst" width="80">分类</td>
		<td id="tdst">商品名称</td>
		<td id="tdst" width="60">销售价</td>
		<td id="tdst" width="60">市场价</td>
		<td id="tdst" width="60">库存</td>
		<td id="tdst" width="60">重量</td>
		<td id="tdst" width="30">上架</td>
		<td id="tdst">标签</td>
	</tr>
<volist name="goods" id="goods">
  <if condition="$goods.store lt 5">
	<tr height=25 align="left" class="g_list" bgcolor="#FF3300" style="color:#fff">
<else/>
   <tr height=25 align="left" class="g_list">
 </if>
		<td id="tdst1"><input type="checkbox"></td>
		<td id="tdst1"><a href="__URL__/edit/id/{$goods.goods_id}" target="_blank">编辑</a>/
		                       <a href="javascript:;" onclick="deletes({$goods.goods_id})">删除</a>
		</td>
		<td id="tdst1">{$goods.bn}</td>
		<td id="tdst1">{$goods.cat_name}</td>
		<td id="tdst1"><a href="{:U('Shop/Goods/item?id='.$goods['goods_id'])}" target="_blank">{$goods.goods_name}</a></td>
		<td id="tdst1" align="center">{$goods.price}</td>
		<td id="tdst1" align="center">{$goods.market_price}</td>
		<td id="tdst1" align="center">{$goods.store}</td>
		<td id="tdst1" align="center">{$goods.weight}</td>
		<td id="tdst1" align="center"><if condition="$goods.is_post eq 0">是<else/><font color='red'>否</font></if></td>
		<td id="tdst1" align="center"  width="50">
		<switch name="goods.goods_label">
			<case value="hot">热卖</case>
			<case value="price">特价</case>
			<case value="rec">推荐</case>
		</switch>
		</td>
	</tr>
</volist>
</table>

</div>
<div class="result page" id="page">{$page}</div>

<script>
function deletes(t){
    var id=t;
	if(confirm('你确认删除此商品吗？')) {
	    window.location.href="__URL__/remove/?id="+id;
	}
}
</script>